<template>
  <h1>组合API-生命周期钩子函数</h1>
</template>

<script setup lang="ts">
import { onBeforeMount, onMounted } from "@vue/runtime-core";

onBeforeMount(() => {
  console.log("B.组件挂载前执行");
});

onMounted(() => {
  console.log("C.组件挂载后执行");
});

console.log("A.setup 顶层的代码");
</script>

